<!DOCTYPE html>
<html>
    <head>
        <title>Issue 6454: Create FBTest that covers HTML panel search</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <link href="../../_common/testcase.css" type="text/css" rel="stylesheet"/>
        <style type="text/css">
        iframe {
            width: 100px;
            height: 100px;
            border: none;
        }
        </style>
    </head>
    <body>
        <header>
            <h1><a href="http://code.google.com/p/fbug/issues/detail?id=6454">Issue 6454</a>:
            Create FBTest that covers HTML panel search</h1>
        </header>
        <div>
            <section id="content">
                <div id="test" data-testing="hi">
                    <div>Testing</div>
                    <span>Testing2</span>
                    <div style="visibility:collapse;" class="testing">
                        <span>Testing</span>
                        <div class="Testing">testing</span>
                        <testing>1</testing>
                    </div>
                </div>
                <iframe src="issue6454-iframe.html"></iframe>
            </section>
            <section id="description">
                <p class="note">
                    Note: This test covers the general <em>HTML</em> panel search as well as
                    <a href="http://code.google.com/p/fbug/issues/detail?id=7259"
                        title="HTML search don't work in frames">issue 7259</a> and
                    <a href="http://code.google.com/p/fbug/issues/detail?id=4491"
                        title="HTML panel search fails">issue 4491</a>.
                </p>
                <h3>Steps to reproduce</h3>
                <ol>
                    <li>Open Firebug</li>
                    <li>Switch to the <em>HTML</em> panel</li>
                    <li>Focus the search field</li>
                    <li>Ensure the search option <em>Case Sensitive</em> is unchecked</li>
                    <li>
                        Search for 'testing'<br/>
                        <span class="ok">There should be 14 occurrences for 'testing' inside the <em>HTML</em> panel.</span>
                    </li>
                    <li>Check the search option <em>Case Sensitive</em></li>
                    <li>
                        Search for 'testing'<br/>
                        <span class="ok">There should be 7 occurrences for 'testing' inside the <em>HTML</em> panel.</span>
                    </li>
                    <li>Uncheck the search option <em>Case Sensitive</em></li>
                    <li>
                        Search for 'Testing'<br/>
                        <span class="ok">There should be 8 occurrences for 'Testing' inside the <em>HTML</em> panel.</span>
                    </li>
                    <li>
                        Search for '#test div'<br/>
                        <span class="ok">There should be 5 occurrences for '#test div' inside the <em>HTML</em> panel.</span>
                    </li>
                    <li>Check the search option <em>Case Sensitive</em></li>
                    <li>
                        Search for '/html/body'<br/>
                        <span class="ok">There should be 4 occurrences for '/html/body' inside the <em>HTML</em> panel.</span>
                    </li>
                </ol>
                <h3>Expected results</h3>
                <ul>
                    <li>There should always be the expected number of matches for a search string inside the <em>HTML</em> panel.</li>
                </ul>
            </section>
            <footer>Jan Odvarko, &lt;odvarko@gmail.com&gt;</footer>
        </div>
    </body>
</html>
